#include<stdio.h>
 
//联合体
union u2  
{
    char a;  //1
    int b; //4
    short c; //2
    double d; //8
    int e[5]; //20
}U3;
 
//主函数
int main(){ 
    printf("%d\n",sizeof(U3));//输出24
    return 0;
}
